<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){

        $group_list=M('groups')->limit(10)->order('ydq_id desc')->select();
        $practices_list=M('practices')->limit(10)->order('ydq_id desc')->select();
        $news_list=M('news')->limit(10)->order('ydq_id desc')->select();
      
        $this->assign('group_list',$group_list);
        $this->assign('practices_list',$practices_list);
        $this->assign('news_list',$news_list);

        $data=session('users');
        $this->assign('one',$data);
        $this->display();
    }
}